package cn.bluethink.eguan.model.core;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.bluethink.eguan.utils.DateTimeSerializer;

/**
 * 金币流通记录模型
 * 
 * @author 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.3.0
 * @brief 驿馆+产品
 * @note 修订历史： 1.wanglei于2018/12/06设计并构建初始版本v0.3.0
 */
public class EgBts {

    /**
     * 主键
     */
    private Long id;

    /**
     * 交易的对象
     */
    private EgObject obj;

    /**
     * 交易总价格
     */
    private Integer totalBts;
    
    /**
     * 交易对象的数量(特指商品)
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer number;

    /**
     * 交易时间
     */
    @JsonSerialize(using = DateTimeSerializer.class)
    private Date ctime;
    
    /**
     * 交易状态,1为收入，-1为支出,0为不增不减
     */
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public EgObject getObj() {
        return obj;
    }

    public void setObj(EgObject obj) {
        this.obj = obj;
    }

    public Integer getTotalBts() {
        return totalBts;
    }

    public void setTotalBts(Integer totalBts) {
        this.totalBts = totalBts;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}
